fetch("https://fanyi.baidu.com/sug", {
  headers: {
    accept: "*/*",
    "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
    "content-type": "application/x-www-form-urlencoded",
    "sec-ch-ua":
      '"Chromium";v="122", "Not(A:Brand";v="24", "Microsoft Edge";v="122"',
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": '"Windows"',
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin"
  },
  referrer: "https://fanyi.baidu.com/mtpe-individual/multimodal",
  referrerPolicy: "strict-origin-when-cross-origin",
  body: "kw=sympathy",
  method: "POST",
  mode: "cors",
  credentials: "include"
})
  .then(res => res.text())
  .then(data => console.log(data));
